package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Basic_WareArea", description = "库位表")
@TableName(value = "Basic_WareArea")
public class BasicWareArea extends FBaseEntity implements Serializable {


    
    @NotBlank(message="[库位编码]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("库位编码")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "code")
    private String code;
    
    @NotBlank(message="[库位名称]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("库位名称")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "name")
    private String name;
    
    @NotNull(message="[所属仓库]不能为空")
    @ApiModelProperty("所属仓库")
    @TableField(value = "wareHouseId")
    private Long wareHouseId;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("长度")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "length")
    private String length;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("宽度")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "width")
    private String width;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("高度")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "height")
    private String height;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("最大重量")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "maxWeight")
    private String maxWeight;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("最大尺寸")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "maxSize")
    private String maxSize;
    
    @ApiModelProperty("是否默认库位")
    @TableField(value = "isDefault")
    private Long isDefault;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("备注")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "remark")
    private String remark;
    
    @NotNull(message="[状态]不能为空")
    @ApiModelProperty("状态")
    @TableField(value = "status")
    private Long status;






}

